package com.lin.cloud.disk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lin.cloud.disk.entity.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Permission)表数据库访问层
 *
 * @author ljc
 * @since 2020-12-10 16:44:58
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 通过权限ID列表查询权限列表
     * @param permissionIdList
     * @return
     */
    List<Permission> selectPermissionListByPermissionIdList(@Param("permissionIdList") List<Long> permissionIdList);

    /**
     * 所有权限
     * @return
     */
    List<Permission> allPermissionList();
}